
#include "ColorBand.h"
#include "scale.xpm"
#include <wx/dcclient.h>


BEGIN_EVENT_TABLE(ColorBand, wxPanel)
    EVT_PAINT(ColorBand::render)
END_EVENT_TABLE()


ColorBand::ColorBand(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name)
:	wxPanel(parent, id, pos, size, style, name)
{
}


void ColorBand::render(wxPaintEvent& evt)
{
	wxBitmap img(scale_xpm);
    wxPaintDC dc(this);
    dc.DrawBitmap(img, 0, 0);

    evt.Skip();
}
